package com.qf.day06;

public class Demo02 {
    public static void main(String[] args) {
//        Animal animal = new Animal("机器猫","机器","机器",120);
//        System.out.println(animal);
//        animal.eat();
//        System.out.println(animal);
//        animal.sleep();
//        System.out.println(animal);

        //创建Dog对象
        Dog dog = new Dog();
        System.out.println(dog);
        dog.setName("旺财");
        dog.setAge(3);
        dog.setSex("男");
        dog.setType("演员");
        dog.setVocal("旺旺旺！！！");
        System.out.println(dog);
        dog.eat();
        System.out.println(dog);

        System.out.println(dog);
    }
}
